import request from "@/utils/request";

const USER_BASE_URL = "/core/vehicle";

const vehicleMonitoringApi = {
  //分页查询车辆设备绑定信息
  getVehicleMonitoring: (params: vehicleMonitoringQuery) => {
    let query = encodeURIComponent(JSON.stringify(params));
    return request({
      url: `${USER_BASE_URL}/device/query?object=${query}`,
      method: "get",
    });
  },
};
export default vehicleMonitoringApi;

// 车辆监控信息查询接口
export interface vehicleMonitoringQuery extends PageQuery {
  /**
   * 车牌号
   */
  licensePlate?: string;

  /**
   * 设备名称
   */
  deviceName?: string;
}

// 车辆监控信息接口
export interface vehicleMonitoring {
  /**
   * 唯一标识符
   */
  id?: number;

  /**
   * 车牌号
   */
  licensePlate: string;

  /**
   * 设备ID
   */
  deviceId?: string;
  /**
   * 设备名称
   */
  deviceName?: string;

  /**
   * 设备类型
   */
  deviceType?: string;

  /**
   * 安装位置
   */
  installationLocation?: string;

  /**
   * 绑定时间
   */
  bindTime?: string;
}
